package creation_patterns.factory_method_pattern;

import creation_patterns.factory_method_pattern.abstract_product.Food;
import creation_patterns.factory_method_pattern.concrete_factory.BunFactory;
import creation_patterns.factory_method_pattern.concrete_factory.NoodlesFactory;
import creation_patterns.factory_method_pattern.concrete_factory.RiceFactory;

public class Test {
    public static void main(String[] args) {
        Food noodles = new NoodlesFactory().createFoodBean();
        System.out.println(noodles.createFood());

        Food rice= new RiceFactory().createFoodBean();
        System.out.println(rice.createFood());

        Food bun= new BunFactory().createFoodBean();
        System.out.println(bun.createFood());


    }
}
